package com.zhangtai.modules.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import com.zhangtai.utils.Excel.ExcelAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class InsuranceDto {
    @TableId()
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;
    /**
     *
     */
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty("被保险单位id")
    private Long companyId;
    /**
     *
     */
    @ApiModelProperty("承保单位")
    private String insuranceUnit;
    /**
     *
     */
    @ApiModelProperty("被保险单位名称")
    private String companyName;
    /**
     *
     */
    @ApiModelProperty("保险开始时间")
    private Date startDate;
    /**
     *
     */
    @ApiModelProperty("保险结束时间")
    private Date endDate;
    /**
     *
     */
    @ApiModelProperty("单价")
    private BigDecimal money;
    /**
     *
     */
    @ApiModelProperty("在保人数")
    private Integer number;
    /**
     *
     */
    @ApiModelProperty("生效状态 1生效 2失效")
    private Integer status;
    /**
     *
     */
    @ApiModelProperty("操作人姓名")
    private String operateName;
    /**
     *
     */
    @ApiModelProperty("操作人工号")
    private String operateCode;
    /**
     *
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     *
     */
    @ApiModelProperty("甲方主体id")
    private String fileUrl;

    /**
     *
     */
    private Long unitId;

    @ApiModelProperty("投保人数")
    private Integer maxNumber;

    @ApiModelProperty("实际投保人数")
    private Integer realNumber;
}
